import call_service from '@dfeidao/atom-nodejs/msg/call-service';
import { spaceid } from "./config";
import whoami from './whoami-nodejs';
interface Message {
	filter: {};
}
export default async function atom(msg: Message, action_id: string, session_id: string) {

	const user = await whoami(action_id, session_id);
	const { params } = await call_service(action_id, session_id, 'permservice.smartsecurity.getuserroleandauthinfo', { systemid: '12', spaceid, 'productid': user.productid, 'clienttype': '3' }) as { params: {} };
	return params;
}
